#ifndef _BSP_HTTP_H_
#define _BSP_HTTP_H_

#include "public.h"
#include "esp_http_client.h"
#include "esp_https_ota.h"
#include "esp_ota_ops.h"
#include "string.h"
#include "cJSON.h"
#include "esp_crt_bundle.h"

#define VERSION_CHECK_URL "http://car.txjer.com/api/car/control/cardota"
#define HTTP_RESP_BUFFER_SIZE 512
#define OTA_URL_SIZE 256
#define HASH_LEN 32

// 修改版本检查函数声明
int check_firmware_version(char *ota_url);

void Http_Ota_Net_Init();
void Http_Ota_Init();

#endif